home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / rtlinc.exe / HUGEPTR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-19  |  711 b   |  32 lines

  1. /*_ hugeptr.h   Sun Dec 23 1990   Modified by: Walter Bright */
  2.  
  3. #ifndef __HUGEPTR_H
  4. #define __HUGEPTR_H
  5.  
  6. #if __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #if __INTSIZE == 4
  11.  
  12. #define hugeptr_cmp(h1,h2) ((h1) - (h2))
  13. #define hugeptr_diff(h1,h2) ((h1) - (h2))
  14. #define hugeptr_add(h1,offset) ((h1) + (offset))
  15.  
  16. #else
  17.  
  18. long __pascal hugeptr_diff(void __far *h1,void __far *h2);
  19. void __far * __pascal hugeptr_add(void __far *h1,long offset);
  20.  
  21. #define hugeptr_cmp(h1,h2) ((long)(h1) - (long)(h2))
  22. #define hugeptr_diff(h1,h2) (hugeptr_diff((h1),(h2)) / sizeof(*h1))
  23. #define hugeptr_add(h,offset) (hugeptr_add(h,(long)offset * sizeof(*h)))
  24.  
  25. #endif
  26.  
  27. #if __cplusplus
  28. }
  29. #endif
  30.  
  31. #endif /* __HUGEPTR_H */
  32.